package com.zm.spring.demo.biz;

import com.zm.spring.demo.mapper.UserMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//业务层
@Data
@Service()
//如果不设置name，userBiz 类名首字母小写
public class UserBiz implements IUserBiz{
    @Autowired
    private UserMapper userMapper;

    @Override
    public void login(String name, String pwd) {
        System.out.println("---------login---------");
    }

    @Override
    public void findByObject(Object user) {
        System.out.println("---------findByObject---------");
    }
}
